package jade.oo.core.behaviours;

import jade.core.Agent;
import jade.lang.acl.ACLMessage;
import jade.lang.acl.MessageTemplate;

public class InboxImpl implements Inbox {

	private final Agent agent;

	public InboxImpl(Agent agent) {
		this.agent = agent;
	}

	@Override
	public ACLMessage receive(MessageTemplate messageTemplate) {
		return agent.receive(messageTemplate);
	}

}
